From 062ef262f9dfea877b6e3551aadff9db0d3d0f13 Mon Sep 17 00:00:00 2001 From: Ian Campbell Date: Tue, 27 Sep 2011 18:39:15 +0100 Subject: [PATCH] libxl: do not try to redo incoming migration on reboot of migrated domain After a migration, reboot was trying to receive another incoming migration, instead of restarting the domain it already has. Signed-off-by: Ian Jackson Tested-by: Andreas Olsowski Committed-by: Ian Jackson --- tools/libxl/xl_cmdimpl.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tools/libxl/xl_cmdimpl.c b/tools/libxl/xl_cmdimpl.c index fb6497bf57..8b5b55b2dc 100644 --- a/tools/libxl/xl_cmdimpl.c +++ b/tools/libxl/xl_cmdimpl.c @@ -1516,6 +1516,11 @@ start: ret = libxl_domain_create_restore(ctx, &d_config, cb, &child_console_pid, &domid, restore_fd); + /* + * On subsequent reboot etc we should create the domain, not + * restore/migrate-receive it again. + */ + restore_file = NULL; }else{ ret = libxl_domain_create_new(ctx, &d_config, cb, &child_console_pid, &domid); -- 2.30.2